<?php
namespace app\controllers;

use yii\web\Controller;
use app\utils\Api;

class ApitestController extends Controller{
    public function actionIndex(){
        $file = '/Api.json';
        $TpApi = new Api();
        $data = $TpApi->GetData($file);

        return $this->renderPartial('index',['data' => $data,]);
    }
}
